package com.woniu.job.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author song
 * @since 2019-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Interview对象", description="")
public class Interview implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;
    @TableField("userId")
    private String userId;
    @TableField("companyId")
    private String companyId;
    @TableField("companyName")
    private String companyName;
    @TableField("workId")
    private String workId;
    @TableField("workName")
    private String workName;

    private LocalDateTime time;

    private String address;

    private String status;
    @TableField("resumeId")
    private String resumeId;
    /**
     * 被邀请面试人姓名
     */
    @TableField(exist = false)
    private String realName;
    /**
     * 面试岗位
     */
    @TableField(exist = false)
    private String name;
    /**
     * 面试人性别
     */
    @TableField(exist = false)
    private String gender;
    /**
     * 工作经历
     */
    @TableField(exist = false)
    private String workExp;
    /**
     * 学历
     */
    @TableField(exist = false)
    private String education;
    /**
     * 面试人所在地区
     */
    @TableField(exist = false)
    private String resumeAddress;
    /**
     * 简历更新时间
     */
    @TableField(exist = false)
    private Date updateTime;

    private String resumeid;

    /**
     * 面试时间
     */
    @TableField(exist = false)
    private String timeOne;
    public Interview id(String id)
    {
        this.id = id;
        return this;
    }

    public Interview userId(String userId)
    {
        this.userId = userId;
        return this;
    }

    public Interview companyId(String companyId)
    {
        this.companyId = companyId;
        return this;
    }

    public Interview companyName(String companyName)
    {
        this.companyName = companyName;
        return this;
    }

    public Interview workId(String workId)
    {
        this.workId = workId;
        return this;
    }

    public Interview workName(String workName)
    {
        this.workName = workName;
        return this;
    }

    public Interview time(LocalDateTime time)
    {
        this.time = time;
        return this;
    }

    public Interview address(String address)
    {
        this.address = address;
        return this;
    }

    public Interview status(String status)
    {
        this.status = status;
        return this;
    }
}
